/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.meuevento.util;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

/**
 *
 * @author jfrs
 */
public class ErrorManager {

     public static void generateError(String detail, String summary){
        FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, detail, summary));
    }

}
